package fr.cie.blog.beans;

/**
 * The AbstractModel class represents an object which have an id and a name.
 * 
 * @author Jee3
 * 
 */
public abstract class AbstractModel implements IModel {

	/**
	 * The identifier.
	 */
	private long id;

	/**
	 * The name.
	 */
	private String name;

	/**
	 * @return the id
	 */
	@Override
	public final long getId() {
		return id;
	}

	/**
	 * @return the name
	 */
	@Override
	public final String getName() {
		return name;
	}

	/**
	 * @param identifier
	 *            the id to set
	 */
	@Override
	public final void setId(final long identifier) {
		this.id = identifier;
	}

	/**
	 * @param newName
	 *            the name to set
	 */
	@Override
	public final void setName(final String newName) {
		this.name = newName;
	}

}